package cn.cy.structure.decorator.pattern;

/**
 * @author yangxq
 * @desc
 * @date 2025-05-12
 */
public class MilkDecorator extends CoffeeDecorator {

    public MilkDecorator(Coffee coffee) {
        super(coffee);
    }

    @Override
    public String getDescription() {
        return coffee.getDescription() + ", Milk";
    }

    @Override
    public double cost() {
        return coffee.cost() + 0.50; // 牛奶附加费用
    }

}
